// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
// iview
import ViewUI from 'view-design';
// import style
import 'view-design/dist/styles/iview.css';
import Cookies from 'js-cookie';
Vue.config.productionTip = false;
Vue.use(ViewUI);
//Vue-Meta 网页SEO
import VueMeta from 'vue-meta'
Vue.use(VueMeta);

// @description 生产环境关掉提示
Vue.config.productionTip = false;

//解决tbale加载慢
import UmyUi from 'umy-ui'
import 'umy-ui/lib/theme-chalk/index.css';// 引入样式
Vue.use(UmyUi);

//vue的ajax
import axios from 'axios'
import  VueAxios from 'vue-axios'
Vue.use(VueAxios,axios);
axios.defaults.timeout = 15000;

// 将api挂载到vue的原型上
import api from './api'
Vue.prototype.$api = api;

//复制
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard);


//加载用户主题
if( !localStorage.getItem("themeValue") ){
  localStorage.setItem("themeValue","dark");
}


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
